package org.ben.xintoucloud.javase.oopanimal;

/**
 * @Author: Ben
 * @Date: 2019/7/10 17:38
 */
public class Animal {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void eat(){
        System.out.println("吃");
    }
    public  void sleep(){
        System.out.println("睡");
    }

}
